import axios from "../utils/axios";

// 获取代标签的文章
export function getMonitorData() {
    return axios.get('/monitor')
}

export function getMonitorPriceData() {
    return axios.get('/monitor/price')
}

export function getMonitorStockPriceData(stock) {
    return axios.get('/monitor/price/' + stock)
}

export function getMonitorStockListData(stock) {
    if (stock) {
        return axios.get('/monitor/list?stock='+stock)
    }
    return axios.get('/monitor/list')
}